<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020/7/23
  Time: 10:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>入党申请审核</title>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8 ? MYOA_CHARSET : htmlspecialchars($HTML_PAGE_CHARSET))?>" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="/lib/layui/layui/css/layui.css?20190817.1">
    <link rel="stylesheet" href="/lib/layui/layui/css/common.css">
    <link rel="stylesheet" href="/lib/layui/layui/css/eleTree.css">
    <script type="text/javascript" src="/js/jquery/jquery-1.9.1.js"></script>
    <script src="/lib/layui/layui/layui.js"></script>
    <script src="/lib/jquery.form.min.js"></script>
    <script src="/lib/layui/layui/js/baseCode/base.js?v=2019080918:09" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="/lib/layui/layui/global.js"></script>
    <script src="/js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <style>
        table{
            width: 65%;
            margin: 0 auto;
            margin-bottom: 20px;
        }
        td{
            border: 1px solid #999;
            padding: 6px 0;
            text-align: center;
            height: 40px;
        }
        .fromTr>.fromTd1{
            width: 10%;
        }
        .fromTr>.fromTd2{
            width: 20%;
        }
        .fromTd2{
            padding: 0 !important;
        }
        .fromTrinp{
            width: 94%;
            height: 77%;
            border: none;
            padding: 0 10px;
        }
        input,textarea{
            border: none;
            padding-left: 10px;
        }
        .fromSpan{
            position: absolute;
            width: 50%;
            top: 5px
        }
        .fromSpan>input{
            width: 50%;
            height: 37px;
        }
        .fromTrSpan{
            width: 45%;
            position: absolute;
            left: 0;
            top: 13px;
        }
        #test3Font,#test4Font{
            position: absolute;
            left: 17%;
            width: 73px;
            top: 1px;
        }
        .fujian{
            position: absolute;
            left: 0;
        }
        .locality-p{
            height: 40px;
            /*background: #3791DA;*/
            /*color: #fff;*/
            font-size: 22px;
            line-height: 40px;
            /*border-bottom:1px solid #9E9E9E;*/
            display: inline-block;
            padding:0 10px;
            margin: 10px;
            /*border-radius: 10px;*/
            /*border-right: 1px solid;*/
        }
    </style>
</head>
<body>
    <div class="content">
        <div class="header">
            <p class="locality-p"><img src="/img/commonTheme/theme6/wangluo.png" style="margin-right: 5px"></img>入党申请审核</p>
        </div>
        <form class="layui-form" action="" lay-filter="example">
            <table class="layui-table"  style="margin: 0 auto;margin-top: 20px;width: 70%;">
                <thead>
                <tr>
                    <th colspan="4" style="width: 100%;text-align: center;margin: 20px 0;font-size: 20px">入党申请审核表</th>
                </tr>
                </thead>
                <tbody>
                <tr class="fromTr">
                    <td class="fromTd1">入党申请人</td>
                    <td class="fromTd2"><input class="fromTrinp" type="text"></td>
                    <td class="fromTd1">入党申请时间</td>
                    <td class="fromTd2"><input class="fromTrinp" type="text"></td>
                </tr>
                <tr class="fromTr">
                    <td class="fromTd1">单位（部门）</td>
                    <td class="fromTd2"><input class="fromTrinp" type="text"></td>
                    <td class="fromTd1">所属党支部名称</td>
                    <td class="fromTd2"><input class="fromTrinp" type="text"></td>
                </tr>
                <tr class="fromTr" style="height: 50px;">
                    <td class="fromTd1">党员推荐票</td>
                    <td colspan="3">
                        <span class="fromTrSpan">
                            <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file1" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                    </td>
                </tr>
                <tr class="fromTr" style="height: 50px;">
                    <td class="fromTd1">党员推荐汇总票</td>
                    <td colspan="3" style="position: relative;">
                        <span class="fromTrSpan">
                            <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file1" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                    </td>
                </tr>
                <tr class="fromTr" style="height: 50px;">
                    <td class="fromTd1">群团（工会/团支部）推优表</td>
                    <td colspan="3" style="position: relative;">
                        <span class="fromTrSpan">
                            <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file1" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                    </td>
                </tr>
                <tr class="fromTr" style="height: 50px;">
                    <td class="fromTd1">支委会会议记录</td>
                    <td colspan="3" style="position: relative;">
                        <span class="fromTrSpan">
                          <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file1" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                    </td>
                </tr>  <tr class="fromTr" style="height: 50px;">
                    <td class="fromTd1">支委会会议决议</td>
                    <td colspan="3" style="position: relative;">
                        <span class="fromTrSpan">
                            <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                    </td>
                </tr>
                <tr class="fromTr" style="height: 50px;">
                    <td class="fromTd1">入党积极分子备<br>案报告</td>
                    <td colspan="3" style="position: relative;">
                        <span class="fromTrSpan">
                           <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file1" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                    </td>
                </tr>
                <tr class="fromTr" style="height: 50px;">
                    <td class="fromTd1">入党积极分子<br>备案表</td>
                    <td colspan="3" style="position: relative;">
                        <span class="fromTrSpan">
                            <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file1" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                    </td>
                </tr>
                <tr class="fromTr" style="height: 100px;">
                    <td class="fromTd1">入党积极分子<br>备案表</td>
                    <td colspan="3" style="position: relative;">
                        <span class="fromTrSpan">
                            <span style="padding-left: 10px;" class="fujian">附件：</span>
                            <input type="file" name="file1" id="test3" class="" style="opacity: 0">
                            <input type="text" readonly="readonly" name="file" id="test3Font" class="" placeholder="上传附件">
                        </span>
                        <span class="fromSpan">提交时间：
                            <input type="text">
                        </span>
                        <br>
                        <p style="margin-left: 10%;text-align: left; margin-top: 20px;">培养联系人姓名：
                            <input type="text" style="width: 15%;height: 37px; margin-right: 20px">
                        </p>
                    </td>
                </tr>
                <tr class="fromTr" style="height: 70px">
                    <td colspan="4" style="text-align: center;">
                        <span>确定积极分子时间： <input type="text" style="width: 15%;height: 37px; margin-right: 90px"></span>
                        <span>支部书记签字： <input type="text" style="width: 15%;height: 37px; margin-right: 20px"></span>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="width:80px">
                        <button type="button" class="layui-btn" style="margin-right: 15px">保存</button>
                        <button type="button" class="layui-btn">转交下一步</button>
                    </td>
                </tr>

                </tbody>
            </table>
        </form>

    </div>
</body>
</html>
<script>
    layui.use(['upload','form','layedit','laydate'], function() {
        var $ = layui.jquery
            , upload = layui.upload
            ,form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //禁用input
        // $('.layui-form input').addClass('layui-disabled').attr('disabled','true')
        // $.ajax({
        //     type:'get',
        //     url:"",
        //     dataType:'json',
        //     succsee:function(res){
        //         form.val('example', {
        //             // "username": data.userName // "name": "value"
        //             // ,"development": data.memberId //发展阶段
        //             // ,"sex": data.sex
        //             // ,"nativity": 1  //出生日期
        //             // ,"minority": '' //民族
        //             // ,"functionar": ''//职务
        //             // ,"unit": data.deptId //单位（部门）
        //             // ,"pertain": data.userId //所属党支部
        //             // ,"name":''  //签名
        //             // ,"clerk":'' //支部书记预设
        //         });
        //     }
        // })

        upload.render({
            elem: '#test3'
            ,url: '/upload?module=workflow'
            ,accept:'file'
            ,done: function(res, index, upload){
                //假设code=0代表上传成功
                layer.msg('上传成功');
                var data = res.obj
                $('#test3').attr('url',data[0].attUrl)
                $('#test3Font').val(data[0].attachName)
            }
        });

    })
</script>
